package com.iot08.common.entity.app;

import com.alibaba.fastjson.JSONArray;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("device_step_ranking_list")
public class DeviceStepRankingList implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
    *  _id                      [ObjectId]  id
     * date                     [str]       日期
     * ranking_list             [list]    排行榜列表
     * imei                     [str]       设备imei
     * image                    [str]       设备头像
     * num                      [int]       步数
     * name                     [str]       设备昵称
     * daily                    [int]       日榜
     * week                     [int]       周榜
     * month                    [int]       月榜
    * */
    @Field("_id")
    private String id;

    private String date;

    private String imei;

    private JSONArray ranking_list;

    private String name;

    private Integer num;

    private Double distance;

    private Double calorie;

    private Integer daily;

    private Integer week;

    private Integer month;

    private Long updateTime;

    private Date expiryAt;

}
